<section class="wrapper">


    <div class="col-lg-12">
        <!--work progress start-->
        <section class="panel">

            <div class="inbox-head">
                <h3>
                   FACEBOOK PAGE MANAGEMENT
                </h3>

            </div>



            <div class="panel-body">

                <div class="col-xs-12 clearfix">


                    <form class="form-horizontal" method="POST"
                          action="<?= base_url();?>secure/facebookpage/submit">
                        <?php
                        if($this->session->flashdata('message'))
                        {
                            $msgs = $this->session->flashdata('message');
                            echo  $this->session->flashdata('message');
                        }
                        ?>
                        <span class="text text-danger pull-right"> All fields are
							mandatory </span>


                         <input type="hidden"
                                                     name="<?php echo $this->security->get_csrf_token_name(); ?>"
                                                     value="<?php echo $this->security->get_csrf_hash();?>" />

                        <div class="text text-warning">
                            <h4>
                                <strong>FACEBOOk</strong>
                            </h4>
                        </div>
                        <hr>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">AppID
                            </label>
                            <div class="col-sm-8">
								<input type="text" name="appid"
                                               id="appid" class="form-control"
                                               placeholder="Type your Business Name"
                                               value="<?= $facebook['info']->appid;?>">


                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">Secret Code
                            </label>
                            <div class="col-sm-8">
                               <input type="text" class="form-control" name="secret_code" id="secret_code" value="<?= $facebook['info']->secret;?>">
                            </div>
                        </div>

                        
                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-9">

                                <button type="submit" name="facebook" class="btn btn-info" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Not allowed in Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');"  >Update</button>
                                </div>
                            </div>
                    </form>
                    </div>
                </div>
            </section>
        </div>
    </section>
